<!--
Siehe http://developer.yahoo.com/ypatterns/pattern.php?pattern=searchpagination
-->

<?php if ($this->pageCount): ?>
<div class="paginationControl">

<!-- Erste Seite -->
<?php if (isset($this->previous)): ?>
  <a href="<?php echo $this->url(array('action' => 'index', 'id' => null, 'page' => $this->first)); ?>"><?php echo $this->translate('paging.firstPage') ?></a> |
<?php else: ?>
  <span class="disabled"><?php echo $this->translate('paging.firstPage') ?></span> |
<?php endif; ?>

<!-- Vorherige Seite -->
<?php if (isset($this->previous)): ?>
  <a href="<?php echo $this->url(array('action' => 'index', 'id' => null, 'page' => $this->previous)); ?>"><?php echo $this->translate('paging.previousPage') ?></a> |
<?php else: ?>
  <span class="disabled"><?php echo $this->translate('paging.previousPage') ?></span> |
<?php endif; ?>

<!-- Anzahl an Seitenlinks -->
<?php foreach ($this->pagesInRange as $page): ?>
  <?php if ($page != $this->current): ?>
    <a href="<?php echo $this->url(array('action' => 'index', 'id' => null, 'page' => $page)); ?>"><?php echo $page; ?></a> |
  <?php else: ?>
    <?php echo $page; ?> |
  <?php endif; ?>
<?php endforeach; ?>

<!-- <?php echo $this->translate('paging.next') ?> Seite -->
<?php if (isset($this->next)): ?>
  <a href="<?php echo $this->url(array('action' => 'index', 'id' => null, 'page' => $this->next)); ?>"><?php echo $this->translate('paging.nextPage') ?></a>
<?php else: ?>
  <span class="disabled"><?php echo $this->translate('paging.nextPage') ?></span>
<?php endif; ?>

<!-- <?php echo $this->translate('paging.lastPage') ?> Seite -->
<?php if (isset($this->next)): ?>
  | <a href="<?php echo $this->url(array('action' => 'index', 'id' => null, 'page' => $this->last)); ?>"><?php echo $this->translate('paging.lastPage') ?></a>
<?php else: ?>
  | <span class="disabled"><?php echo $this->translate('paging.lastPage') ?></span>
<?php endif; ?>

</div>
<?php endif; ?>

